home *** CD-ROM | disk | FTP | other *** search
- on Sinistra stringa, Valore
- set lun to length(stringa)
- if Valore > lun then
- set Valore to lun
- end if
- if (Valore > 0) and (Valore <= lun) then
- return char 1 to Valore of stringa
- end if
- end
-
- on Centro stringa, inizio, fine
- set lun to length(stringa)
- if voidp(fine) then
- set fine to lun
- end if
- if (inizio > 0) and (fine <= lun) then
- return char inizio to fine of stringa
- end if
- end
-
- on Destra stringa, Valore
- set lun to length(stringa)
- if Valore > lun then
- set Valore to lun
- end if
- if (Valore >= 0) and (Valore <= lun) then
- set pos to lun - Valore + 1
- return char pos to lun of stringa
- end if
- end
-
- on BtnUp Bottone
- if Bottone <> EMPTY then
- set BottoneUp to "BtnUp" & char 6 to the length of Bottone of Bottone
- return BottoneUp
- end if
- end
-
- on BtnDw BottoneUp
- set BottoneDw to "BtnDw" & char 6 to the length of BottoneUp of BottoneUp
- return BottoneDw
- end
-
- on BtnRL BottoneUp
- set BottoneRL to "BtnRL" & char 6 to the length of BottoneUp of BottoneUp
- return BottoneRL
- end
-
- on BtnOf BottoneUp
- set BottoneOf to "BtnOf" & char 6 to the length of BottoneUp of BottoneUp
- return BottoneOf
- end
-
- on BtnName BottoneUp
- set Bottone to char 6 to the length of BottoneUp of BottoneUp
- return Bottone
- end
-
- on BtnICNName BottoneUp
- set Bottone to char 9 to the length of BottoneUp of BottoneUp
- return Bottone
- end
-